package practical_projects.games.submarine_war_v2;

public class Producer {
    public static Submarine getSubmarine() {   // 生产潜艇
        int type = (int)(Math.random() * 3);
        if(type == 0)
            return new ObserveSubmarine();
        else if(type == 1)
            return new MineSubmarine();
        else
            return new TorpedoSubmarine();
    }
}
